<template>
  <div>
    app
    <Child />
  </div>
</template>

<script>
import Child from "./Child.vue";

export default {
  name: "App",
  components: {
    Child,
  },
  // 捕获后代组件产生的错误
  errorCaptured(e) {
    console.dir(e);
  },
};
</script>

<style></style>
